package com.Lyoto.core.service.Impl;

import com.Lyoto.core.enetity.Product;
import com.Lyoto.core.mapper.ProductMapper;
import com.Lyoto.core.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author Lyoto
 * @Description
 * @Date 2022-09-22 11:30
 * @Version
 **/
@Component
public class ProductServiceImpl implements ProductService {
    @Autowired ProductMapper productMapper;
    @Override
    public List<Product> selectAll() {
        return productMapper.queryAllProducts();
    }
    
}
